<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>商品列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <!-- jquery -->
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
    <!-- bootstrap -->
    <link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap.min.css}"/>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
    <!-- jquery-validator -->
    <script type="text/javascript" th:src="@{/jquery-validation/jquery.validate.min.js}"></script>
    <script type="text/javascript" th:src="@{/jquery-validation/localization/messages_zh.min.js}"></script>
    <!-- layer -->
    <script type="text/javascript" th:src="@{/layer/layer.js}"></script>
    <!-- md5.js -->
    <script type="text/javascript" th:src="@{/js/md5.min.js}"></script>
    <!-- common.js -->
    <script type="text/javascript" th:src="@{/js/common.js}"></script>
</head>
<body>
<div class="panel panel-default">
    <div class="panel-heading">秒杀商品列表</div>
    <table class="table" id="goodsVoList">
        <tr>
            <td>商品名称</td>
            <td>商品图片</td>
            <td>商品原价</td>
            <td>秒杀价</td>
            <td>库存数量</td>
            <td>详情</td>
        </tr>
        <tr th:each="goodsVo,goodsVoStat : ${goodsVoList}">
            <td th:text="${goodsVo.goodsName}"></td>
            <td><img th:src="@{${goodsVo.goodsImg}}" width="100" height="100"/></td>
            <td th:text="${goodsVo.goodsPrice}"></td>
            <td th:text="${goodsVo.miaoshaPrice}"></td>
            <td th:text="${goodsVo.stockCount}"></td>
            <!--<td><a th:href="'/goods/detail/'+${goodsVo.id}">详情</a></td>-->
            <!--使用伪页面静态化，实现前后端分离-->
            <td><a th:href="'/goods_detail.htm?goodsId='+${goodsVo.id}">详情</a></td>
        </tr>
    </table>
</div>
</body>
</html>